/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javamail.sip.util;


/**
 *
 * @author sriram
 */
public enum eSipCallState {
    not_in_call(1),
    invite_rcvd(2),
    invite_sent(3),
    invite_200ok_rcvd(4),
    invite_200ok_sent(5),
    invite_ack_sent(6),
    invite_ack_rcvd(7),
    data(8),
    bye_rcvd(9),
    bye_sent(10),
    bye_200ok_rcvd(11),
    bye_200ok_sent(12),
    cancel_sent(13),
    cancel_rcvd(14),
    invite_180ring_rcvd(15),
    invite_180ring_sent(16),
    invite_100trying_rcvd(17),
    invite_100trying_sent(18),
    invite_404notfound_sent(19),
    invite_404notfound_rcvd(20);

    private final int index;
    
    eSipCallState(int index) {
        this.index = index;
   }
    
    public int toInt() {
        return index;
    }
}
